import { createRouter, createWebHistory } from 'vue-router'

const router = createRouter({
    history: createWebHistory(import.meta.env.BASE_URL),
    routes: [
        {
            path: '/',
            name: 'home',
            component: () => import('@doc/views/Home.vue')
        },
        {
            path: '/console',
            name: 'console',
            component: () => import('@doc/views/console/Index.vue')
        },
        {
            path: '/upload',
            name: 'upload',
            component: () => import('@doc/views/upload/Index.vue')
        },
        {
            path: '/comment',
            name: 'comment',
            component: () => import('@doc/views/comment/Index.vue')
        },
        {
            path: '/request',
            name: 'request',
            component: () => import('@doc/views/request/Index.vue')
        }
    ]
})

export default router
